package com.example.sourcesprng.jdk17._instanceof;

public class TestJDK17_PatternMatchInstanceOf {

    public static void main(String[] args) {
        Object obj = "qwerdf";
        obj = 1;

        if (obj instanceof String s && s.length() > 5) {
            System.out.println("The string has more than 5 characters");
        }

    }
}
